package com.itycu.server.domain.business;

import java.math.BigDecimal;
import java.util.Date;

import com.itycu.server.annotation.Excel;
import com.itycu.server.core.domain.BaseNewEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 练习子对象 pra_practices
 *
 * @author itycu
 * @date 2025-02-20
 */
@TableName("pra_practices")
public class PraPractices extends BaseNewEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 主表id */
    @Excel(name = "主表id")
    private Long primaryId;

    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;

    /** 产品型号 */
    @Excel(name = "产品型号")
    private String model;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 税率 */
    @Excel(name = "税率")
    private BigDecimal tax;

    /** 税额 */
    @Excel(name = "税额")
    private BigDecimal taxMoney;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal money;

    /** 部门状态（0正常 1停用） */
    @Excel(name = "部门状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 创建者 */
    private Long createBy;

    /** 创建时间 */
    private Date createTime;

    /** 更新者 */
    private Long updateBy;

    /** 更新时间 */
    private Date updateTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPrimaryId(Long primaryId)
    {
        this.primaryId = primaryId;
    }

    public Long getPrimaryId()
    {
        return primaryId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setModel(String model)
    {
        this.model = model;
    }

    public String getModel()
    {
        return model;
    }
    public void setNumber(Long number)
    {
        this.number = number;
    }

    public Long getNumber()
    {
        return number;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setTax(BigDecimal tax)
    {
        this.tax = tax;
    }

    public BigDecimal getTax()
    {
        return tax;
    }
    public void setTaxMoney(BigDecimal taxMoney)
    {
        this.taxMoney = taxMoney;
    }

    public BigDecimal getTaxMoney()
    {
        return taxMoney;
    }
    public void setMoney(BigDecimal money)
    {
        this.money = money;
    }

    public BigDecimal getMoney()
    {
        return money;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCreateBy(Long createBy)
    {
        this.createBy = createBy;
    }

    public Long getCreateBy()
    {
        return createBy;
    }
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }
    public void setUpdateBy(Long updateBy)
    {
        this.updateBy = updateBy;
    }

    public Long getUpdateBy()
    {
        return updateBy;
    }
    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("primaryId", getPrimaryId())
                .append("productId", getProductId())
                .append("model", getModel())
                .append("number", getNumber())
                .append("price", getPrice())
                .append("tax", getTax())
                .append("taxMoney", getTaxMoney())
                .append("money", getMoney())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
